package _05静态代码块应用_斗地主;

import java.util.ArrayList;

public class Pocker {
    private static ArrayList<String> poker = new ArrayList<>();

    static {
        poker.add("大☠") ;
        poker.add("小☠") ;

        //循环加入纸牌
        //花色数组
        String[] colors = {"♠","♥","♣","♦"};
        //牌号数组
        String[] numbers = {"2","A","K","Q","J","10","9","8","7","6","5","4","3"};

        for (int i = 0; i < colors.length; i++) {
            for (int j = 0; j < numbers.length; j++) {
                poker.add(colors[i]+numbers[j]);
            }
        }

        System.out.println(poker);
    }
}
